package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.AssginRoleDto;
import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;


public interface SysRoleService {

    PageInfo<SysRole> findByPage(Integer current, Integer size, SysRoleDto sysRoleDto);

    void addSysRole(SysRole sysRole);

    SysRole getById(Long id);

    void updateById(SysRole sysRole);

    void deleteById(Long id);

    Map<String, Object> toAssignPage(Long userId);

    void toAssginRole(AssginRoleDto assginRoleDto);
}
